package com.hjlsoft.aftp.network;

import java.util.HashMap;
import java.util.List;
import java.util.Map;



public abstract class AbstractRequest implements Request {

	private String ins;
	
	private List<String> paramList;
	
	private String clientIp;
	
	private Map<String, Object> attributes = new HashMap<String, Object>();
	
	private volatile boolean bodyCanRead = false;
	
	private Object bodyCanReadLock = new Object();
	
	public String getIns() {
		return ins;
	}

	public void setIns(String ins) {
		this.ins = ins;
	}

	public List<String> getParamList() {
		return paramList;
	}

	public void setParamList(List<String> paramList) {
		this.paramList = paramList;
	}

	public String getClientIp() {
		return clientIp;
	}

	public void setClientIp(String clientIp) {
		this.clientIp = clientIp;
	}

	public Object getAttribute(String name) {
		return attributes.get(name);
	}

	public void setAttribute(String name, Object value) {
		attributes.put(name, value);
	}

	public boolean isBodyCanRead() {
		return bodyCanRead;
	}

	public Object getBodyCanReadLock() {
		return bodyCanReadLock;
	}

	public void setBodyCanRead(boolean bodyCanRead) {
		this.bodyCanRead = bodyCanRead;
	}
	
}
